package org.example.excel;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;

import java.util.ArrayList;
import java.util.List;

public class ProviderExcelReadListener implements ReadListener<ProviderExcel> {
    List<ProviderExcel> list;

    public ProviderExcelReadListener() {list = new ArrayList<ProviderExcel>();}

    @Override
    public void invoke(ProviderExcel providerExcel, AnalysisContext analysisContext) {
        list.add(providerExcel);
    }

    public List<ProviderExcel> getList() {
        return list;
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

}
